package com.example.registration.entity;

import lombok.Data;
import javax.validation.constraints.*;

@Data
public class Registration {
    private Long id;

    @NotBlank(message = "学生姓名不能为空")
    @Size(max = 50, message = "学生姓名长度不能超过50个字符")
    private String studentName;

    @NotBlank(message = "年级不能为空")
    private String grade;

    @NotBlank(message = "家长姓名不能为空")
    @Size(max = 50, message = "家长姓名长度不能超过50个字符")
    private String parentName;

    @NotBlank(message = "联系方式不能为空")
    @Pattern(regexp = "^1[3-9]\\d{9}$", message = "手机号格式不正确")
    private String contactPhone;
    
    private Long registrationLimitId;
    
    private String createTime;
    private String status; // PENDING, APPROVED, REJECTED
}